Platform Explorer / Nuxeo Platform 2023.55

Component org.nuxeo.user.preferences.impl.docModel

Documentation

User Preferences service implementation based on Directory. @since 2025.16

Resolution Order

923
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Start Order

954
The start order represents the order in which this component has been started by the Nuxeo Runtime framework.
This number is interesting to tweak if your Java component interacts with other components, and needs to be started before or after another one.
It can be changed by implementing the method "Component#getApplicationStartedOrder()" on your Java component: components are sorted according to this reference value, in increasing order.
The default value is 1000, and the repository initialization uses number 100. Negative values can also be used.

Implementation

Class: org.nuxeo.user.preferences.directory.UserPreferencesServiceImpl

Services

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.user.preferences.impl.docModel">

  <documentation>
    User Preferences service implementation based on Directory.
    @since 2025.16
  </documentation>

  <service>
    <provide interface="org.nuxeo.user.preferences.api.UserPreferencesService" />
  </service>

  <implementation class="org.nuxeo.user.preferences.directory.UserPreferencesServiceImpl" />

  <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
    <schema name="user_preferences" src="schemas/user-preferences.xsd" />
    <property schema="user_preferences" name="repository" indexOrder="ascending" />
    <property schema="user_preferences" name="key" indexOrder="ascending" />
    <property schema="user_preferences" name="docId" indexOrder="ascending" />
    <property schema="user_preferences" name="userId" indexOrder="ascending" />
  </extension>

  <extension target="org.nuxeo.ecm.directory.GenericDirectory" point="directories">
    <directory name="userPreferences" extends="template-directory">
      <schema>user_preferences</schema>
      <idField>id</idField>
      <autoincrementIdField>true</autoincrementIdField>
      <types>
        <type>system</type>
      </types>
      <permissions>
        <permission name="Read">
          <group>__Nobody__</group>
        </permission>
      </permissions>
    </directory>
  </extension>

</component>